package com.sgcc.pda.hzaidl.entity;

import android.bluetooth.BluetoothDevice;

import java.util.Set;

/**
 * Created by qinling on 2019/12/18 18:31
 * Description:
 */
public class BluetoothDiscoveryParam {
    public static final class Request{
        public int getDiscoveryTime() {
            return discoveryTime;
        }

        public void setDiscoveryTime(int discoveryTime) {
            this.discoveryTime = discoveryTime;
        }

        public Request(int discoveryTime) {
            this.discoveryTime = discoveryTime;
        }

        /**
         * 蓝牙搜索时间,单位为 s
         */
        int discoveryTime;

    }

    public static final class Response{
       public  static final int ON_BONDED_DEVICES = 0;
       public  static final int ON_FOUND = 1;
       public  static final int ON_DISCOVERY_FINISHED = 2;
       public  static final int ON_DISCOVERY_STARTED = 3;
       private int callbackMethd;
       private Set<BluetoothDevice> pairedBluetoothDevices;
       private BluetoothDevice device;

        public Response(int callbackMethd, BluetoothDevice device) {
            this.callbackMethd = callbackMethd;
            this.device = device;
        }
        public Response(int callbackMethd, Set<BluetoothDevice> pairedBluetoothDevices) {
            this.callbackMethd = callbackMethd;
            this.pairedBluetoothDevices = pairedBluetoothDevices;
        }
        public Response(int callbackMethd) {
            this.callbackMethd = callbackMethd;
        }

        public int getCallbackMethd() {
            return callbackMethd;
        }

        public void setCallbackMethd(int callbackMethd) {
            this.callbackMethd = callbackMethd;
        }

        public Set<BluetoothDevice> getPairedBluetoothDevices() {
            return pairedBluetoothDevices;
        }

        public void setPairedBluetoothDevices(Set<BluetoothDevice> pairedBluetoothDevices) {
            this.pairedBluetoothDevices = pairedBluetoothDevices;
        }

        public BluetoothDevice getDevice() {
            return device;
        }

        public void setDevice(BluetoothDevice device) {
            this.device = device;
        }
    }



}
